<?php
namespace Admin\Controller;
use Think\Controller;
class CommonController extends Controller {
    public function _initalize(){
		$name = session('name');  
		if(empty($name)){
			$this->redirect("Admin/Public/login");
		}else{
			$this->assign("name",$name);
			$this->display();
		}
	 
    }
}